package com.lsh.airticket.dao;

import com.lsh.airticket.entity.Airport;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
 * @author lsh
 * @date 2021/2/17
 **/
@Repository
public interface AirportDao {

    List<Airport> findTbAirportAll();

    //插入一条数据
    int insertTbAirport(Airport airport);

    //根据条件查找
    List<Airport> findTbAirportByCondition(HashMap<String, Object> map);

    //根据 airportId 查找 city的名称
    String findCityName(Integer airportId);

    //查询一条数据
    Airport findTbAirportById(Integer airportId);

    // 删除机场
    int deleteTbAirportById(Integer airportId);
}
